// testDecltype.cpp : This file contains the 'main' function. Program execution begins and ends there.
//

#include <iostream>

int main()
{
    /**
     * decltype获知表达式的类型
     * 用法:decltype(exp)【expression表达式：变量、判断等】
     * decltype将精确地推导表达式的定义本身的类型
     */
    int x = 0;
    /** 变量 [8/21/2020 ZC] */
    decltype(x) y = 1;
    /** 表达式 [8/21/2020 ZC] */
    decltype(x + y) z = 0;

    const int& i = x;
    decltype(i) j = y;
    

    std::cout << "Hello World!\n";
}
